package com.daijt.mobile.persistence;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "list_items")
public class ListItem implements Serializable {

	private static final long serialVersionUID = -601320356479425721L;
	
	private long id;
	private long itemOrder;
	private String item;
	private String status;

	private long listId;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	@Column
	public long getItemOrder() {
		return itemOrder;
	}

	public void setItemOrder(long itemOrder) {
		this.itemOrder = itemOrder;
	}

	@Column
	public String getItem() {
		return item;
	}

	public void setItem(String item) {
		this.item = item;
	}

	@Column
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column
	public long getListId() {
		return listId;
	}

	public void setListId(long listId) {
		this.listId = listId;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder("id: ");
		sb.append(id);
		sb.append(" listId: ");
		sb.append(listId);
		sb.append(" itemOrder");
		sb.append(itemOrder);
		sb.append(" status: ");
		sb.append(status);
		
		return sb.toString();
	}
	
	

}
